// AWTColumnLayout.h: interface for the AWTColumnLayout class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTCOLUMNLAYOUT_H__EC8D7168_82B9_11D2_A428_006097A44215__INCLUDED_)
#define AFX_AWTCOLUMNLAYOUT_H__EC8D7168_82B9_11D2_A428_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CLASS_DECL_D AWTColumnLayout : public AWTLayout,
                                     public AWTLayoutManager  
{
DECLARE_DYNAMIC(AWTColumnLayout)
public:
	AWTColumnLayout();
	AWTColumnLayout(int gap);
	virtual ~AWTColumnLayout();

	virtual AWTLayoutManager* getLayoutManager()
		{return static_cast<AWTLayoutManager*>(this);}

	void addLayoutComponent(CString* name, AWTComponent* comp);
	void addLayoutComponent(AWTComponent* comp, AWTObject* constraints){};
	void removeLayoutComponent(AWTComponent* comp);
	CSize preferredLayoutSize(AWTContainer* target);
	CSize minimumLayoutSize(AWTContainer* target);
	void layoutContainer(AWTContainer* target);
	void destroy()
		{delete this;}

protected:
	int m_gap;
};

#endif // !defined(AFX_AWTCOLUMNLAYOUT_H__EC8D7168_82B9_11D2_A428_006097A44215__INCLUDED_)
